﻿
using TrackSystem.Contracts;
using TrackSystem.Entities.Dtos.Var;
using TrackSystem.IO.Utils;

namespace TrackSystem.UI.Server.HttpRepository.Var
{
    public interface IVarHttpRepository
    {
        Task<IEnumerable<VarDto>> GetAll();
        Task<IEnumerable<VarDto>> GetAllOfSensor(int sensorId);

        Task<ApiResult<VarDto>> AddVar(VarDto varDto);
        Task<ApiResult<VarDto>> UpdateVar(VarDto varDto);
        Task<ApiResult<VarDto>> DeleteVar(int id);

        Task<FormulaResult> TestForula(string expression);
    }
}
